<?php
namespace Common\Cron;
use Think\Controller;

/**
 * Created by PhpStorm.
 * User: wanghaibo
 * Date: 17/5/8
 * Time: 09:50
 */
class TestCron extends Controller
{
    public function index(){
        echo 'hah<br/>';
        M('test')->add(array(
            'test'=>time(),
        ));
    }
}
$class = new TestCron();
$class->index();